<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html  xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">

<h:body>

        <h:form>
            Vorname:    
            <h:inputText required="true" value="#{userold.firstname}"
                         requiredMessage="Vorname eingeben" 
                         id="RegField1"/> 
            <h:message for="RegField1" style="color:aqua"/><br />
            
             Nachname: 
             <h:inputText required="true" value="#{userold.lastname}" 
                          requiredMessage="Nachname eingeben" 
                          id="RegField2"/>  
             <h:message for="RegField2" style="color:aqua"/><br />
            
             Email: 
            <h:inputText required="true" value="#{userold.email}"           
                         requiredMessage="Email eingeben" 
                         id="RegField3"/>    
            <h:message for="RegField3" style="color:aqua"/><br />
            
             Passwort:  
            <h:inputSecret required="true" redisplay="false" 
                           value="#{userold.password}" id="passwordField"
                           requiredMessage="Passwort eingeben" 
                           validatorMessage="Bitte mind. 8 zeichen eingbeen">
                           <f:validateLength minimum="8" />
                           </h:inputSecret>      
            <h:message for="RegField3" style="color:aqua"/><br />
            
            <h:commandButton value="drück mich" action="#{userold.addUser}" />

           
          
        
      
        </h:form>

</h:body>
</html>
